package consistentHash;

/**
 * @author 03010570
 * @date 2020/07/07
 * describe:    物理节点
 */
public class PhysicalNode {
    private String domain;
    private String ip;
    private Integer port;

    public PhysicalNode(String domain, String ip, Integer port) {
        this.domain = domain;
        this.ip = ip;
        this.port = port;
    }

    @Override
    public String toString() {
        return  domain+":"+ip+":"+port;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
